package com.zhuangjie.order;

import com.zhuangjie.base.constant.ModuleSecurityNames;
import com.zhuangjie.security.annotations.DefineModuleNameForSecurityFramework;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
// 开启服务发现-nacos
@EnableDiscoveryClient
@EnableTransactionManagement
@EnableFeignClients(basePackages="com.zhuangjie.order.feign")
@DefineModuleNameForSecurityFramework(ModuleSecurityNames.ORDER)
public class SparkOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(SparkOrderApplication.class, args);
    }

}
